package com.starlink.model.dtomapper;

import com.starlink.model.domain.MallBooksOrderDetailsDO;
import com.starlink.model.request.MallBooksOrderDetailsRequest;
import com.starlink.model.vo.MallBooksOrderDetailsVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface MallBooksOrderDetailsDtoMapper {

    MallBooksOrderDetailsDtoMapper INSTANCE = Mappers.getMapper(MallBooksOrderDetailsDtoMapper.class);

    /**
    * DO to VO
    * @param mallBooksOrderDetailsDO
    * @return
    */
    MallBooksOrderDetailsVO do2VO(MallBooksOrderDetailsDO mallBooksOrderDetailsDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    MallBooksOrderDetailsDO request2DO(MallBooksOrderDetailsRequest request);
}
